/*
There is given a string array and strings having names
for eg . careercup , career , dewdeals , onlineshopping
You have to create a program that finds the largest string in given string array
*/

#include<iostream.h> //  10 mins in typing 
#include<conio.h>
#include<string.h>
#define LEN 50
void findMaxLenString(int numOfString)
{
    char inputString[numOfString][LEN];
    cout<<"\nenter string\n";
    for(int i=0; i<numOfString; i++)
    {
            cin>> inputString[i];
    }
    int maxLen = strlen(inputString[0]), indexMax =0;
    for(int j=0; j<numOfString; j++)
    {
            if(maxLen < strlen(inputString[j]))
            {
                      maxLen = strlen(inputString[j]);
                      indexMax = j;
            }
            
    }
    cout<<"\n max length string = "<<inputString[indexMax]  <<" length = "<<maxLen;
     
}
int main()
{
    int numOfString;
    cout<<"\n enter the num of strings u want to enter";
    cin>> numOfString;
    if(numOfString == NULL)
         return 0;
    getch();
    return 0;
}
